package com.zzy.librarytest.service.impl;

import com.zzy.librarytest.dao.LendRecordDao;
import com.zzy.librarytest.entity.Record;
import com.zzy.librarytest.entity.User;
import com.zzy.librarytest.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RecordServiceImpl implements RecordService {
    @Autowired
    private LendRecordDao lendRecordDao;

    @Override
    public Record selectOneRecord(Integer id) {
        return lendRecordDao.selectOneRecord(id);
    }

    @Override
    public List<Record> selectAllRecord() {
        return lendRecordDao.selectAllRecord();
    }

    @Override
    public Integer insertRecord(Record record) {
        return lendRecordDao.insertRecord(record);
    }

    @Override
    public Integer deleteRecord(Integer id) {
        return lendRecordDao.deleteRecord(id);
    }

    @Override
    public Integer updateRecord(Integer id) {
        return lendRecordDao.updateRecord(id);
    }
}
